.class Lcn/domob/android/ads/DomobAdView$1;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcn/domob/android/ads/DomobAdView;->a(Lcn/domob/android/ads/C;[Landroid/view/animation/AnimationSet;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:[Landroid/view/animation/AnimationSet;

.field final synthetic b:Lcn/domob/android/ads/C;

.field final synthetic c:Lcn/domob/android/ads/DomobAdView;


# direct methods
.method constructor <init>(Lcn/domob/android/ads/DomobAdView;[Landroid/view/animation/AnimationSet;Lcn/domob/android/ads/C;)V
    .locals 0

    iput-object p1, p0, Lcn/domob/android/ads/DomobAdView$1;->c:Lcn/domob/android/ads/DomobAdView;

    iput-object p2, p0, Lcn/domob/android/ads/DomobAdView$1;->a:[Landroid/view/animation/AnimationSet;

    iput-object p3, p0, Lcn/domob/android/ads/DomobAdView$1;->b:Lcn/domob/android/ads/C;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 6

    const/4 v5, 0x0

    const/4 v4, 0x0

    iget-object v0, p0, Lcn/domob/android/ads/DomobAdView$1;->c:Lcn/domob/android/ads/DomobAdView;

    iget-object v0, v0, Lcn/domob/android/ads/DomobAdView;->f:Lcn/domob/android/ads/B;

    invoke-virtual {v0}, Lcn/domob/android/ads/B;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    if-eqz v0, :cond_1

    invoke-static {}, Lcn/domob/android/ads/DomobAdView;->l()Lcn/domob/android/ads/H;

    move-result-object v0

    const-string v1, "AdView\'s layoutParams is not null."

    invoke-virtual {v0, v1}, Lcn/domob/android/ads/H;->a(Ljava/lang/String;)V

    iget-object v0, p0, Lcn/domob/android/ads/DomobAdView$1;->c:Lcn/domob/android/ads/DomobAdView;

    iget-object v0, v0, Lcn/domob/android/ads/DomobAdView;->f:Lcn/domob/android/ads/B;

    invoke-virtual {v0}, Lcn/domob/android/ads/B;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    iget-object v1, p0, Lcn/domob/android/ads/DomobAdView$1;->c:Lcn/domob/android/ads/DomobAdView;

    iget v1, v1, Lcn/domob/android/ads/DomobAdView;->k:I

    iput v1, v0, Landroid/view/ViewGroup$LayoutParams;->width:I

    iget-object v0, p0, Lcn/domob/android/ads/DomobAdView$1;->c:Lcn/domob/android/ads/DomobAdView;

    iget-object v0, v0, Lcn/domob/android/ads/DomobAdView;->f:Lcn/domob/android/ads/B;

    invoke-virtual {v0}, Lcn/domob/android/ads/B;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    iget-object v1, p0, Lcn/domob/android/ads/DomobAdView$1;->c:Lcn/domob/android/ads/DomobAdView;

    iget v1, v1, Lcn/domob/android/ads/DomobAdView;->l:I

    iput v1, v0, Landroid/view/ViewGroup$LayoutParams;->height:I

    :goto_0
    iget-object v0, p0, Lcn/domob/android/ads/DomobAdView$1;->a:[Landroid/view/animation/AnimationSet;

    if-eqz v0, :cond_2

    invoke-static {}, Lcn/domob/android/ads/DomobAdView;->l()Lcn/domob/android/ads/H;

    move-result-object v0

    const-string v1, "Show ad with animation."

    invoke-virtual {v0, v1}, Lcn/domob/android/ads/H;->b(Ljava/lang/String;)V

    iget-object v0, p0, Lcn/domob/android/ads/DomobAdView$1;->a:[Landroid/view/animation/AnimationSet;

    aget-object v0, v0, v4

    iget-object v1, p0, Lcn/domob/android/ads/DomobAdView$1;->a:[Landroid/view/animation/AnimationSet;

    const/4 v2, 0x1

    aget-object v1, v1, v2

    iget-object v2, p0, Lcn/domob/android/ads/DomobAdView$1;->c:Lcn/domob/android/ads/DomobAdView;

    iget-object v2, v2, Lcn/domob/android/ads/DomobAdView;->f:Lcn/domob/android/ads/B;

    invoke-virtual {v2, v0}, Lcn/domob/android/ads/B;->setInAnimation(Landroid/view/animation/Animation;)V

    iget-object v0, p0, Lcn/domob/android/ads/DomobAdView$1;->c:Lcn/domob/android/ads/DomobAdView;

    iget-object v0, v0, Lcn/domob/android/ads/DomobAdView;->f:Lcn/domob/android/ads/B;

    invoke-virtual {v0, v1}, Lcn/domob/android/ads/B;->setOutAnimation(Landroid/view/animation/Animation;)V

    :goto_1
    iget-object v0, p0, Lcn/domob/android/ads/DomobAdView$1;->c:Lcn/domob/android/ads/DomobAdView;

    iget-object v0, v0, Lcn/domob/android/ads/DomobAdView;->f:Lcn/domob/android/ads/B;

    invoke-virtual {v0, v4}, Lcn/domob/android/ads/B;->setVisibility(I)V

    iget-object v0, p0, Lcn/domob/android/ads/DomobAdView$1;->c:Lcn/domob/android/ads/DomobAdView;

    iget-boolean v0, v0, Lcn/domob/android/ads/DomobAdView;->m:Z

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcn/domob/android/ads/DomobAdView$1;->c:Lcn/domob/android/ads/DomobAdView;

    iput-boolean v4, v0, Lcn/domob/android/ads/DomobAdView;->m:Z

    :goto_2
    iget-object v0, p0, Lcn/domob/android/ads/DomobAdView$1;->b:Lcn/domob/android/ads/C;

    const-string v1, "javascript:domobjs.onViewable()"

    invoke-virtual {v0, v1}, Lcn/domob/android/ads/C;->loadUrl(Ljava/lang/String;)V

    iget-object v0, p0, Lcn/domob/android/ads/DomobAdView$1;->c:Lcn/domob/android/ads/DomobAdView;

    iget-object v0, v0, Lcn/domob/android/ads/DomobAdView;->a:Lcn/domob/android/ads/f;

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v1

    invoke-virtual {v0, v1, v2}, Lcn/domob/android/ads/f;->a(J)V

    iget-object v0, p0, Lcn/domob/android/ads/DomobAdView$1;->c:Lcn/domob/android/ads/DomobAdView;

    iget-object v0, v0, Lcn/domob/android/ads/DomobAdView;->p:Lcn/domob/android/ads/DomobAdListener;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcn/domob/android/ads/DomobAdView$1;->c:Lcn/domob/android/ads/DomobAdView;

    iget-object v0, v0, Lcn/domob/android/ads/DomobAdView;->p:Lcn/domob/android/ads/DomobAdListener;

    iget-object v1, p0, Lcn/domob/android/ads/DomobAdView$1;->c:Lcn/domob/android/ads/DomobAdView;

    invoke-interface {v0, v1}, Lcn/domob/android/ads/DomobAdListener;->onReceivedFreshAd(Lcn/domob/android/ads/DomobAdView;)V

    :cond_0
    iget-object v0, p0, Lcn/domob/android/ads/DomobAdView$1;->c:Lcn/domob/android/ads/DomobAdView;

    invoke-virtual {v0}, Lcn/domob/android/ads/DomobAdView;->j()V

    iget-object v0, p0, Lcn/domob/android/ads/DomobAdView$1;->c:Lcn/domob/android/ads/DomobAdView;

    iget-object v0, v0, Lcn/domob/android/ads/DomobAdView;->a:Lcn/domob/android/ads/f;

    invoke-virtual {v0}, Lcn/domob/android/ads/f;->x()V

    return-void

    :cond_1
    invoke-static {}, Lcn/domob/android/ads/DomobAdView;->l()Lcn/domob/android/ads/H;

    move-result-object v0

    const-string v1, "AdView\'s layoutParams is null."

    invoke-virtual {v0, v1}, Lcn/domob/android/ads/H;->a(Ljava/lang/String;)V

    iget-object v0, p0, Lcn/domob/android/ads/DomobAdView$1;->c:Lcn/domob/android/ads/DomobAdView;

    iget-object v0, v0, Lcn/domob/android/ads/DomobAdView;->f:Lcn/domob/android/ads/B;

    new-instance v1, Landroid/widget/RelativeLayout$LayoutParams;

    iget-object v2, p0, Lcn/domob/android/ads/DomobAdView$1;->c:Lcn/domob/android/ads/DomobAdView;

    iget v2, v2, Lcn/domob/android/ads/DomobAdView;->k:I

    iget-object v3, p0, Lcn/domob/android/ads/DomobAdView$1;->c:Lcn/domob/android/ads/DomobAdView;

    iget v3, v3, Lcn/domob/android/ads/DomobAdView;->l:I

    invoke-direct {v1, v2, v3}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v0, v1}, Lcn/domob/android/ads/B;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    goto :goto_0

    :cond_2
    invoke-static {}, Lcn/domob/android/ads/DomobAdView;->l()Lcn/domob/android/ads/H;

    move-result-object v0

    const-string v1, "Show ad without animation."

    invoke-virtual {v0, v1}, Lcn/domob/android/ads/H;->b(Ljava/lang/String;)V

    iget-object v0, p0, Lcn/domob/android/ads/DomobAdView$1;->c:Lcn/domob/android/ads/DomobAdView;

    iget-object v0, v0, Lcn/domob/android/ads/DomobAdView;->f:Lcn/domob/android/ads/B;

    invoke-virtual {v0, v5}, Lcn/domob/android/ads/B;->setInAnimation(Landroid/view/animation/Animation;)V

    iget-object v0, p0, Lcn/domob/android/ads/DomobAdView$1;->c:Lcn/domob/android/ads/DomobAdView;

    iget-object v0, v0, Lcn/domob/android/ads/DomobAdView;->f:Lcn/domob/android/ads/B;

    invoke-virtual {v0, v5}, Lcn/domob/android/ads/B;->setOutAnimation(Landroid/view/animation/Animation;)V

    goto :goto_1

    :cond_3
    iget-object v0, p0, Lcn/domob/android/ads/DomobAdView$1;->c:Lcn/domob/android/ads/DomobAdView;

    iget-object v0, v0, Lcn/domob/android/ads/DomobAdView;->f:Lcn/domob/android/ads/B;

    invoke-virtual {v0}, Lcn/domob/android/ads/B;->showNext()V

    goto :goto_2
.end method
